<?php

$pluginName = 'icons';
class thumbnailPlugins_icons extends BaseThumbnail
{
	public function getThumbnail()
	{
		$thumb = parent::getThumbnail();
		if($thumb === false)
		{
			$ext = $this->file->getExtension();
			$uri = THUMBNAIL_PLUGINS_DIRECTORY.OS_PATH_SEPARATOR.'icons'.OS_PATH_SEPARATOR.'images'.OS_PATH_SEPARATOR.$ext.'.png';
			$thumb = $this->saveToCache($uri);
		}
		return $thumb;
	}
	
	public static function getExtensionHandle()
	{
		return array('pdf','zip','psd','sh','exe');
	}
	
	public static function getPluginName()
	{
		return 'icons';
	}
	
	public static function getPriority()
	{
		return 2;
	}
}
